package com.company.OfferGuide;

public class n1中缺失的数字 {

    public int missingNumber(int[] nums) {

        for (int i = 0; i < nums.length; i++) {
            if (nums[i] != i) return i;
        }
        return nums.length;
    }

}
